import { AddFormatFunc, variableMapRuleType } from "../types";

AddFormatFunc<variableMapRuleType>({

	type: "VAR_MAP",

	handle: (rule, FMC) => {
		return `{${rule[1].map(item => `${FMC(item[0])}${item[1] === undefined ? "" : `: ${FMC(item[1])}`}`).join(", ")}}`;
	},

})
